#pragma once
typedef struct rectResult {
    int startX;
    int startY;
    int width;
    int height;
}RectResult;

typedef struct diffResult {
    int x;
    int y;
    int width;
    int height;
    int centerX;
    int centerY;
    int targetOffsetX;
    int targetOffsetY;
}DiffResult;

const char* msgAndDataToJson(const std::string& message, const std::string& data);

const char* getRectJson(const RectResult& rr);

const char* getCoordinateJson(const int x, const int y);

const char* getWHJson(const int w, const int h);